package home_8_17;

public class JiaoChe extends Car{
    private String brand;
    public JiaoChe (String brand,int price){
        super("轿车",price);
        this.brand = brand;
    }

    @Override
    protected String xinXi() {

        String msg="";
        msg+="类型:"+super.getType()+"\r\n";
        msg+="品牌:"+brand+"\r\n";
        msg+="租金:"+super.getPrice()+"\r\n";
        msg+="天数:"+super.getDate()+"\r\n";
        return msg;
    }
}
